import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'
import GoodsDetail from '@/views/GoodsDetail'
import MyMusic from '@/views/MyMusic'
import MyFriend from '@/views/MyFriend'
import MyFind from '@/views/MyFind'
import Sing1 from '@/views/Sing1'
import Sing2 from '@/views/Sing2'
import Intofind from '@/views/Intofind'
import Is404 from '@/views/is404'
// import { component } from 'vue/types/umd'

Vue.use(VueRouter)

const routes = [
  {
    path: '/goodsdetail/:id',
    component: GoodsDetail
  },
  {
    path: '/mymusic',
    component: MyMusic
  },
  {
    path: '/myfriend',
    component: MyFriend
  }, {
    path: '/myfind',
    component: MyFind
  },
  {
    path: '/sing1/:id',
    // name: 'sg',
    component: Sing1
  }, {
    path: '/sing2/:id1',
    component: Sing2
  }, {
    path: '/intofind',
    component: Intofind
  }, {
    path: '/is404',
    component: Is404
  }, {
    path: '*',
    component: Is404
  }
]

const router = new VueRouter({
  routes,
  mode: 'hash'
})

export default router
